$OpenBSD: patch-m4_Makefile_am_in,v 1.1 2004/07/19 16:12:36 espie Exp $
--- m4/Makefile.am.in.orig	Mon Jul 19 18:01:09 2004
+++ m4/Makefile.am.in	Mon Jul 19 18:02:01 2004
@@ -3,13 +3,13 @@
 ##m4-files-begin
 ##m4-files-end
 
-Makefile.am: Makefile.am.in
+$(srcdir)/Makefile.am: Makefile.am.in
 	rm -f $@ $@t
-	sed -n '1,/^##m4-files-begin/p' $< > $@t
+	sed -n '1,/^##m4-files-begin/p' Makefile.am.in > $@t
 	( (echo EXTRA_DIST = README Makefile.am.in | tr '\012' @); \
 	  (echo *.m4|tr ' ' @) ) \
 	  |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
 	  >> $@t
-	sed -n '/^##m4-files-end/,$$p' $< >> $@t
+	sed -n '/^##m4-files-end/,$$p' Makefile.am.in >> $@t
 	chmod a-w $@t
 	mv $@t $@
